package Java.A;

public class Main {
    public static void main(String[] args) {
        ShapeManager shapeManager = new ShapeManager();
        Rectangle rec = new Rectangle(new Point(10, 10), 100, 200);
        Triangle tri = new Triangle(new Point(0, 10), new Point(50, 50), new Point(150, 0));
        Circle cir = new Circle(new Point(100, 100), 100);

//        System.out.println("长方形周长："+rec.perimeter());
//        System.out.println("长方形面积："+rec.area());
//        System.out.println("三角形周长："+tri.perimeter());
//        System.out.println("三角形面积："+tri.area());
//        System.out.println("圆形周长："+cir.perimeter());
//        System.out.println("圆形面积："+cir.area());

        shapeManager.addShape(rec);
        shapeManager.addShape(tri);
        shapeManager.addShape(cir);
        shapeManager.drawShapes();
        shapeManager.delShape(rec);
        shapeManager.drawShapes();
    }
}
